package com.mdata.model.dto.wechat.result;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * 获取部门列表
 * 调试工具
 *
 * 请求方式：GET（HTTPS）
 * 请求地址：https://qyapi.weixin.qq.com/cgi-bin/department/list?access_token=ACCESS_TOKEN&id=ID
 *
 *     {
 *        "errcode": 0,
 *        "errmsg": "ok",
 *        "department": [
 *            {
 *                "id": 2,
 *                "name": "广州研发中心",
 *                "name_en": "RDGZ",
 *                "parentid": 1,
 *                "order": 10
 *            },
 *            {
 *                "id": 3,
 *                "name": "邮箱产品部",
 *                "name_en": "mail",
 *                "parentid": 2,
 *                "order": 40
 *            }
 *        ]
 *     }
 *
 */
@Data
@ToString(callSuper = true)
public class DepartmentListResult extends WeChatBaseResult {

    @JsonProperty(value = "department")
    List<Department> departmentList;
}
